<!--
	flex排版
	父元素设置
	display: flex;
	水平设置
	justify-content: ;
	子元素水平左右距离一致
	justify-content: space-around;
	子元素水平左中右布局
	justify-content: space-between;
	垂直设置
	align-items: ;
	子元素垂直居中
	align-items: center;
-->

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>flex</title>
		<style type="text/css">
			.main{
				height: 500px;
				background-color: red;
				display: flex;
				justify-content: space-between;
				align-items: center;
			}
			.main div{
				width: 100px;
				height: 100px;
			}
			.div1{
				background-color: blue;
			}
			.div2{
				background-color: black;
			}
			.div3{
				background-color: green;
			}
		</style>
	</head>
	<body>
		<div class="main">
			<div class="div1">
				
			</div>
			<div class="div2">
				
			</div>
			<div class="div3">
				
			</div>
		</div>
	</body>
</html>
